Subject: Re: SAS/C V6.x's break disabling
From: [email-masked] (Doug Walker)
Date: 8 Mar 93 16:26:03 GMT
Newsgroups: comp.sys.amiga.programmer

In article <[email-masked]>, [email-masked] (Sam Yee) writes:
|> I can't seem to disable SAS/C V6.x's breaking.
|> Here is roughly what I have:
|> ---------------------
|> #include <stdio.h>
|> 
|> int CXBRK(void){return(0);} /* disables ^C break? */
|> int chkabort(void){return(0);}

The names have changed in V6.0 in order to comply with the
ANSI restrictions on non-ANSI library function names.  Use
the following:

   int __chkabort(void){return 0;}

Note that you will need to make sure that this gets compiled
with registerized parameters as well;  the easiest thing is
to simply compile with PARMS=REG.  You could also add the
__regargs keyword:

   int __regargs __chkabort(void){return 0;}

but then you also need to add it to the prototype in 
include:dos.h if you include that file.

Note also that the new name for CXBRK is _CXBRK, but you do not
need to define it if you redefine __chkabort correctly.

-- 
  *****
=*|_o_o|\\=====Doug Walker, Software Distiller====== BBS: (919)460-7430 =
 *|. o.| ||                                          1200/2400/9600 Dual
  | o  |//     For all you do, this bug's for you!
  ====== 
usenet: [email-masked]                            bix: djwalker 
Any opinions expressed are mine, not those of SAS Institute, Inc.